<style type="text/css" >
<?$auth = Zend_Auth::getInstance(); ?>
div.module
{
	float:right;
	color:brown;	
	border:2px solid;
	width:500px;
}
div.comment_child
{
	float:right;
	color:blue;	
	border:1px solid;
	width:400px;
}
</style>

<script type="text/javascript" src="/public/library/jquery/jquery.form.js"></script>
<script type="text/javascript" src="/public/library/hvn/comment.js"></script>

<div class="module_comment"> <!-- Actions for comments -->
<!-- List comment -->
<?if(!empty($this->cList)) :?>
	<?foreach($this->cList as $k => $v) :?>
<div class="box_border_service_content">
	<div class="box_service_content_menu">
		&nbsp;&nbsp;&nbsp; <?=p("Sort By") . ':'?> <?=t(602)?> &nbsp;&nbsp;|&nbsp;&nbsp; Điểm Số <?=$v['rating_count']?>&nbsp;&nbsp;|&nbsp;&nbsp; Ngày &nbsp;&nbsp;
		<img src="/public/themes/second/images/rss.jpg" style="width:25px; height:25px;" align="absmiddle"/> &nbsp;&nbsp;&nbsp;   
		<img src="/public/themes/second/images/write-binhluan.jpg" style="width:26px; height:24px;" align="absmiddle" /> &nbsp;&nbsp;&nbsp;<?=t(602) . ':'?> <?=$k?>  &nbsp;&nbsp;&nbsp;
		<img src="/public/themes/second/images/kathy.jpg" style="width:30px; height:26px;" align="absmiddle" />&nbsp;&nbsp;&nbsp; <?=$v['poster_name']?>
	</div>

	<div class="box_service_content_img"><img src="/public/themes/second/images/advert-right.jpg" align="absmiddle" /></div>
	<div class="text"><?=$v['comment_text']?> 
	</div>

	<div class="box_service_content_menubottom">
		<div class="box_service_content_star">
			<div><img src="/public/themes/second/images/star-blue.jpg" align="absmiddle" /> <?=$v['rating']?></div>
		</div>
		<div class="box_service_content_control" align="right">
			<a href="<?=$this->hvnUrl(array('action' => 'edit', 'module' => 'comment'),'nocontroller')?>?id=<?=$v['id']?>">
				<img src="/public/themes/second/images/edit.jpg" align="absmiddle" class="mar_img" /></a>
			<img src="/public/themes/second/images/spam.jpg" align="absmiddle"  class="mar_img"/>
			<img src="/public/themes/second/images/reply.jpg" align="absmiddle" class="mar_img" />
			<a href="<?=$this->hvnUrl(array('action' => 'delete', 'module' => 'comment'),'nocontroller')?>?id=<?=$v['id']?>">
			<img src="/public/themes/second/images/delete.jpg" align="absmiddle" class="mar_img" /></a>
		</div>
	</div>
</div>
<div class="clear"></div>
<!--<div align="center" class="box_phantrang"><b> Trang 1 </b> | 2 | 3 | . . .</div>-->
<div class="clear"></div>
	<?endforeach?>
<?endif?>

<div class="box_hot_tours_tab_category1">
<br/>
<br/><br/>
<form id="search-comment-box" accept-charset="UTF-8"
	action="<?= $this->escape($this->formSearch->getAction()) ?>" 
  	method="<?= $this->escape($this->formSearch->getMethod()) ?>"  class="box_hot_tours_list_category">
    <table >
        <tr>
        	<td>
        		<?=t(81) ?>:
        		<?=$this->formSearch->language ?>
        	</td>
        	<td>
        		<?=t(609) ?>:
        		<?=$this->formSearch->orderBy ?>	
        	</td>
        	<td>
        		<?=t(610) ?>:
        		<?=$this->formSearch->comments_per_page ?>	
        	</td>
        	<td>
        		<input type="submit" value="Go" id="go-submit"/>
        		<input type="hidden" name="content_type" value="<?=$this->content_type ?>" />
    			<input type="hidden" name="content_id" value="<?=$this->content_id ?>" />
        	</td>
        </tr>
    </table>
</form>
</div>

<div id="comment-box"></div>
<div id="comment-list" > <?=$this->commentList ?> </div>
<br/>
<div id="new-comment-box-wrapper" class="module_comment">
    <div class="box_hot_tours_list_category" id="new-comment-box" style="float:right" class='box'>
        <form id="new-comment-form" accept-charset="UTF-8" 
            action="<?= $this->escape($this->form2->getAction()) ?>"
        	method="<?= $this->escape($this->form2->getMethod()) ?>" >
        	<br/> <br/>
            <?=t(13) ?>:
            <?=$this->form2->title ?>
            <br/>
            <? if (!$auth->hasIdentity()):?>
            <?=t(611) ?>: 
            <?=$this->form2->poster_name?>
            <br/>
            <?=t(612) ?>:
            <?=$this->form2->guest_email ?>
            <br>
            <?=t(824) ?>:
            <?=$this->form2->guest_link;?>
            <br>
            <? endif  ?>
            <?=t(81) ?>:
            <?=$this->form2->language ?>
            <br>
            <?=t(606) ?>:
            <br/>
            <?=$this->form2->comment_text ?>
            <br/>
            <div>
            <?=$this->form2->captcha_newcomment ?>
            <a href="javascript:void()" class="redraw"> <?=t(22) ?> </a>
            </div>
            <br/>
            <?=$this->form2->submit ?>
            
            <input type="hidden" name="content_type" value="<?=$this->content_type ?>" />
            <input type="hidden" name="content_id" value="<?=$this->content_id ?>" />
            <input type="hidden" id = "pid" name="pid" value= "0" />
        </form>
    </div>
</div>
</div>